#include "SALT_Surface.h"

namespace SALT{
	namespace Objects{
		typedef SDL_Surface* PSDL_Surface;
		PSDL_Surface&		SurfaceObject::surf(){return this->_surf;}
		SurfaceObject::SurfaceObject(SDL_Surface *surf):DrawableObject(){
			this->_surf=NULL;
		}
		SurfaceObject::~SurfaceObject(){
		}
		int SurfaceObject::draw(Graphics::SDLGraphicsManager* gm){
			Point p=this->_position;p(-this->_origin.x,-this->_origin.y);
			gm->blit(this->_surf,p);
			return 0;
		}
		int SurfaceObject::update(){return 0;}
	};
};